package com.chushouya.order.dto.api.clerk.action;

import com.chushouya.order.constants.ClerkOrderActionEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel("业务员自卖撤销")
@Data
public class ClerkOrderSelfSaleBackoutAction extends ClerkBaseAction {

    public ClerkOrderSelfSaleBackoutAction() {
        super.setOrderAction(ClerkOrderActionEnum.BACKOUT_SELF_SALE);
    }

    @ApiModelProperty("订单ID")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @ApiModelProperty("撤销自卖的原因")
    private String backOutRemark;

}
